//
//  common.swift
//  WeiBoSwift
//
//  Created by hgj on 2016/11/17.
//  Copyright © 2016年 HuGuoJian. All rights reserved.
//  通用类  

import UIKit

// MARK: ----- OAuth应用信息 -----
let client_id = "1313644558"
let client_secret = "38fb0adf79a7ec33b84754273a595b57"
let redirect_uri =  "http://itheima.com"

let errTip = "请检查网络"

// MARK: ----- 归档存储的路径 -----


// MARK: ----- 定义切换根视图控制器的通知名称 -----
let kChoseRootViewController = "kChoseRootViewController"

// MARK: ----- 屏幕的尺寸信息 -----
let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height

// MARK: ----- 随机颜色 -----
func randomColor() -> UIColor {
    let r = CGFloat(arc4random() % 256) / 255.0
    let g = CGFloat(arc4random() % 256) / 255.0
    let b = CGFloat(arc4random() % 256) / 255.0
    return UIColor(red: r, green:g, blue: b, alpha: 1)
}


let navBarHeight: CGFloat = 64
